import Vue from 'vue'
import Router from 'vue-router'
import layout from '@/views/layout'
import index from '@/views/index'
import CarInfo from '@/views/CarInfo/CarInfo'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'layout',
      component: layout,
      children: [
        {
          path: '/',
          name: 'index',
          component: index,
        },
        {
          path: 'carInfo',
          name: 'CarInfo',
          component: CarInfo
        }
      ]
    }
  ]
})
